//
// Created by mio on 25-5-7.
//


#include "LoadBlanceServer.h"
#include "../LoginServer/LoginServer.h"
#include "../Net/EventLoop.h"

int main()
{
    EventLoop loop(2);
    std::shared_ptr<LoginServer> loginServer = nullptr;
    auto loadServer = LoadBlanceServer::Create(&loop);
    if (loadServer->Start("127.0.0.1", 8523))
    {
        loginServer = LoginServer::Create(&loop);
        if (loginServer->Start("127.0.0.1", 9867))
        {
            printf("LoginServer Start Successful\n");
        }
    }
    while (1)
    {
        std::this_thread::sleep_for(std::chrono::milliseconds(100));
    }
    return 0;
}